from django.http import HttpResponse
from rest_framework.views import APIView

class BookView(APIView):
    def get(self, request):
        return HttpResponse("APIView:get请求book")
    def post(self, request):
        return HttpResponse("APIView:post请求book")